PostMenuCleanup
NEW WITH CONTEXTUAL MENUS
Performs any necessary cleanup when the contextual menu is dismissed. If you write a contextual menu plug-in, it must contain aPostMenuCleanup
method with the following form:
OSStatus PostMenuCleanup(void);
- method result
- A result code. See "Result Codes" for a list of possible values.
DISCUSSION
When a contextual menu is dismissed (regardless of whether or not the user made a selection), the Menu Manager calls each plug-in'sPostMenuCleanup
method. ThePostMenuCleanup
method should do any necessary cleanup or memory deallocation. For example, a plug-in that allocated a buffer in theExamineContext
method should dispose of that buffer whenPostMenuCleanup
is called.